package cn.com.cfae.iras.doc.analyze.parse.model;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * 营业收入
 */
public class YYSRModel extends BizBaseModel {

    public static String MODEL_NAME = "YYSR";

    /**
     * 业务板块
     * 合计、占比是特殊值
     */
    private static String YWBK = "YWBK";
    /**
     * 营业收入
     */
    private static String YYSR = "YYSR";
    /**
     * 占比
     */
    private static String ZB = "ZB";

    private static Map<String, String> items = new HashMap<>();

    static {
        items.put(YYSR, "营业收入");
        items.put(YWBK, "业务板块");
        items.put(ZB, "占比");
    }

    public static List<ExtractItem> createExtractItemList() {
        List<ExtractItem> extractItemList = new ArrayList<>();
        items.forEach((key, value) -> {
            ExtractItem extractItem =  new ExtractItem();
            extractItem.setItemName(key);
            extractItem.setSynonyms(value.split(SYNONYM_SPLIT_CHAR));
            extractItemList.add(extractItem);
        });
        return extractItemList;
    }


}
